<%@page import="com.ljw.store.action.*"%>
<%@page import="com.ljw.store.dao.*"%>
<%@page import="com.ljw.store.entity.*"%>
<%@page import="com.ljw.store.services.*"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>商铺搜索</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>

	<body>
		<jsp:include page="../userview/top.jsp"></jsp:include>
		<div class="content"  >
			<div class="header">
				<h1 class="page-title">
					商铺搜索
				</h1>
			</div>
			<ul class="breadcrumb">
				<li>
					<a href="<%=basePath%>/adminView/index.jsp">主页</a>
					<span class="divider">/</span>
				</li>
				<li class="active">
					商铺搜索
				</li>
			</ul>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="row-fluid">
					<br>
						<div class="well"  >
							<ul class="thumbnails">
								<div class="row-fluid">
									<s:if test="searchShop.size!=0">
									<s:iterator value="searchShop" var="menu" status="st">
										<li class="span3">
											<div class="thumbnail">
												<a href="/sell_food/showshopItem?shopId=<s:property value="shopId" /> "><img src="<s:property value="picture" />" alt="" width="220"
													height="170"></a>
												<h6>
													<a href="/sell_food/showshopItem?shopId=<s:property value="shopId" /> ">商店名：<s:property value="shopName" /></a>      
												</h6>
												<h6> 
												已售：<s:property value="number" />笔
												</h6>
											</div>
										</li>
										<s:if test="%{#st.index%4 == 3 && !#st.last}">
								</div>
								<div class="page-header"></div>
								<div class="row-fluid">
									</s:if>
									</s:iterator>
							</ul>
						</div>

						<div class="pagination">
							<ul>
								<li>
									
									<a class="maroon" href="showhotStore?pageNumber=1">首页</a>
									<a class="maroon"
										href="showsearchShop?pageNumber=<s:property value="pageNumber-1"/>">上一页</a>
									<a class="maroon"
										href="showsearchShop?pageNumber=<s:property value="pageNumber+1"/>">下一页</a>
									<a class="maroon"
										href="showsearchShop?pageNumber=<s:property value="totalPage"/>">末页</a>
									<s:property value="pageNumber" />
								/
								<s:property value="totalPage" />
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			</s:if>
				<s:else>
					<div style="height: 80px;width: 304px;color: #7ABD54;margin: 10% 0 10% 35%;">
								<div >
								<center><font style="font: 24px/40px 微软雅黑;height:52px; line-height:80px;">不存该商铺,请换个搜索关键字试试！</font></center>
								</div>
							</div>
				</s:else>
			
	</body>
</html>
